package com.hyst.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.hyst.model.PersonProduceRealView;

public interface Person_Produce_Real_Repository extends  JpaRepository<PersonProduceRealView, String>  {

	@Query(value = "select * from person_produce_real_view where worker_id = ?1 and real_begin_time >= ?2 and real_finish_time <= ?3", nativeQuery = true)
	List<PersonProduceRealView> findAllByUserId(String worker_id,String starttime,String endtime);
	
}
